<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>定位</title>
  <link rel="stylesheet" href="css/position.css">
</head>

<body>

  <div class="fixed-top">上方</div>
  <div class="fixed-right">右方</div>
  <div class="fixed-bottom">下方</div>
  <div class="fixed-left">左方</div>


  <div class="abs">绝对定位，慎用！！！！</div>



</body>

</html>